<!DOCTYPE html>
<style>
div {
    width: 100px;
    height: 100px;
    position: absolute;
    transform-origin: 100% 100%;
}

#target {
    background-color: red;
    rotate: 90deg;
}
#expected {
    background-color: green;
    transform: rotate(90deg);
}
</style>

<p>There should be no red color boxes</p>
<div id="target"></div>
<div id="expected"></div>
